package com.ruoyi.syf.controller;

import com.ruoyi.syf.service.IRiskEvaluationAccidentDetailService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;

/**
 * 风险判定-事故明细
 *
 * @author yr
 * @date 2024-07-04
 */
@RestController
@RequestMapping("/syf/detail")
public class RiskEvaluationAccidentDetailController extends BaseController {
    @Autowired
    private IRiskEvaluationAccidentDetailService riskEvaluationAccidentDetailService;

    /**
     * 获取风险判定-事故明细详细信息
     */
    @GetMapping(value = "/{id}")
    public AjaxResult getInfo(@PathVariable("id") Long id) {
        return success(riskEvaluationAccidentDetailService.selectRiskEvaluationAccidentDetailById(id));
    }

}
